# !/usr/bin/env python
# -*- coding: utf-8 -*-

import requests
from bs4 import BeautifulSoup

if __name__ == '__main__':
    url = 'http://www.mlr.gov.cn/tdsc/land/crgg/gyyd/201609/t20160927_6032576.htm'
    html = requests.get(url)
    soup = BeautifulSoup(html.content, 'html5lib')
    title = str(soup.select('td.zw_title')[0])
    zw = str(soup.select('td#content1')[0])

    with open('./guotuju.html', 'ab') as f:
        f.write(title)
        f.write('\n\n')
        f.write(zw)



